<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #lb{
            background: pink;
        }
        .c1{
            color: green;
        }
        li,a{
            background: blue;
        }
        a:link{
            color: green;
        }
        a:visited{
            color:blue ;
        }
        a:hover{
            color: red;
        }
        a:active{
            color: yellow;
        }
        input[type='text']{
            color: red;
        }
        input[type='password']{
            color: green;
        }
        div div p{
            color: green;
        }
        body>div>div>p{
            background:red ;
        }
        #d1{
            color: green;
            width: 200px;
            height: 200px;
            background-color: red;
            background-image: url("a.jpg");
            background-size: 100px 100px;
            background-repeat: no-repeat;
            background-position: 50% 50%;
            text-align: center;
            line-height: 200px;
            font-size: 30px;
            font-weight: bold;
            text-shadow: blue -50px 50px 20px;
        }
        a{
            display: block;
            text-decoration: none;
            width: 100px;
            height: 100px;
            background-color: blue;
        }
    </style>
</head>
<body>
<div id="lb">刘备</div><div>关羽</div><div class="c1">张飞</div>
<span>刘备</span><span>关羽</span><span>张飞</span>

<p>悟空</p><p>八戒</p><p class="c1">沙僧</p>
<ul>
    <li>水煮鱼</li><li>红烧肉</li><li class="c1">黄焖鸡</li>
</ul>
<input type="text"><input type="password">
<div>
    <p>p1</p>
    <div><p>p2</p></div>
    <div>
        <p>p3</p>
        <div><p>p4</p></div>
    </div>
</div>
<a href="http://www.baidu.com">百度</a>
<div id="d1">我是div</div>
</body>
</html>